Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(zk): add test for create2 computation with L2Contract #549

Merged
merged 5 commits into from
Aug 29, 2024
Merged

Conversation

Karrq
Copy link
Contributor

@Karrq Karrq commented Aug 27, 2024

refactor(test:zk): extract computeCreate2Address

Motivation

We have tests to check that CREATE2 works and that it produces the expected address, but not that the expected address matches what L2ContractHelper computes.

Solution

Add a test which depends on the L2ContractHelper to compute the address.

Notes

All tests of this kind (checkin create2 address is correct) have been moved to the new test (which has some deps) as a logical group

chore: use consistent variable name
@Karrq Karrq merged commit bf71946 into main Aug 29, 2024
11 checks passed
@Karrq Karrq deleted the test/create2 branch August 29, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants